Conversation
tomasMizera
left a comment
There was a problem hiding this comment.
The exercise with the new AuthSync class is now feeling a bit too much - it's basically just calling the import method 🙃 I suggest we get rid of it altogether. In addition to that, the PR:
- is missing autotests
- missed project reload in case the auth file is changed
- missed to reset auth entries before loading the auth db
Good job with the ossl linking fix.
core/merginapi.cpp
Outdated
| ProjectDiff diff = transaction.diff; | ||
| int newVersion = syncSuccessful ? transaction.version : -1; | ||
|
|
||
| // TODO check if the xml configuration has been changed |
There was a problem hiding this comment.
I tried to only modify the xml configuration file from QGIS. Upon syncing, it was already detected by that function, which emitted a force reload of the project. So I don't think we should specifically check for the cfg modification at all.
8c4755a to
2281cca
Compare
|
Some ideas for testing:
|
Pull Request Test Coverage Report for Build 21666284673Details
💛 - Coveralls |
|
Windows build is failing because of the QCA_OSSL_PLUGIN lookup |
📦 Build Artifacts Ready
|
📦 Build Artifacts Ready
|
Withalion
left a comment
There was a problem hiding this comment.
The loading of QGIS auth DB didn't work on Windows. Same project worked on Android.
Changed logic in auth sync
Added unit tests to handle the import of configuration file
9697596 to
fe5119e
Compare
📦 Build Artifacts Ready
|
Upgraded qca version for windows functionality Removed unnecessary lines of code in main
|
I upgraded the QCA version, and the authentication worked on Windows as well. |
📦 Build Artifacts Ready
|
|
Off topic: We should try to build the app with cmake 4.0+ now, last time QCA was the thing not letting us build it |
I think you could create a ticket for it to be in the backlog 😉 |
📦 Build Artifacts Ready
|
📦 Build Artifacts Ready
|
| // set up the master password for authentication database retrieval | ||
| authManager->setPasswordHelperEnabled( false ); | ||
| authManager->setMasterPassword( QStringLiteral( "merginMaps" ) ); | ||
| authManager->setMasterPassword( QStringLiteral( "merginMaps" ), true ); |
There was a problem hiding this comment.
The addition of verify=true does not seem to do much as we do not read the return value. Still ok though..
Ready for review.
Added Auth sync class that handles the importation of authentication database configuration file.